package com.hyzh.latte.vehicle.dmo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 车辆轨迹历史记录信息
 * 最好是按照园区分开；
 * @author songkui
 * @since 2024/2/21 17:24
 */
@Data
@EqualsAndHashCode(of ={"id"}, callSuper = false)
@Accessors(chain = true)
@TableName("vehicle_track_")
public class VehicleTrackRecordPGEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    //所属园区
    @TableField("park_code")
    private String parkCode;

    //杆子编码
    @TableField("pole_code")
    private String poleCode;

    //摄像头编码
    @TableField("camera_code")
    private String cameraCode;

    //OBJECT ID
    @TableField("object_id")
    private String objectId;

    //车牌号
    @TableField("vehicle_no")
    private String vehicleNo;

    //速度
    @TableField("velocity")
    private Integer velocity;

    //经度
    @TableField("lon")
    private String lon;

    //维度
    @TableField("lat")
    private String lat;

    //车辆类型
    @TableField("vehicle_type")
    private String vehicleType;

    //摄像头编码
    @TableField("next_pole")
    private String nextPole;

    //摄像头编码
    @TableField("add_time")
    private LocalDateTime addTime;

    //类型  0 正常行驶，  1，进企业
    @TableField("do_type")
    private Integer doType;


    @TableField("dit")
    private Integer dit;

    //target: ‘x’ or ‘y’
    @TableField("pole_lab")
    private String poleLab;

    //target: ‘x’ or ‘y’
    @TableField("next_pole_lab")
    private String nextPoleLab;


    @TableField("minio_obj")
    private String minioObj;


    @TableField("enterprises")
    private String enterprises;

    @TableField("gate_code")
    private String gateCode;

    @TableField("actime")
    private Long actime;


    @TableField(value = "count(*)", insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER, select = false)
    private Long count;


    @TableField(exist = false)
    private String road; // 路信息

}
